package com.workerhelping.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_income_category")
public class IncomeCategory implements Serializable {
    @TableId
    private Integer id;
    // 收入类别
    private String category;
    // 该类总金额
    private double count;
    // 收入信息
    @TableField(select = false,exist = false)
    List<Income> incomes;
    // 乐观锁
    @Version
    private Integer version;
}
